package com.peas.platform.module.icims.expenditure.basal.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("用户公务卡信息")
public class ExpenditureBusinessCardVo extends BaseVo {

    // （用户表）外键
    @Comment(value = "用户ID")
    @ApiModelProperty(value = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Comment(value = "用户公务卡类型", enumType = "ExpenditureBusinessCardType")
    @ApiModelProperty(value = "用户公务卡类型", notes = "枚举取值:ExpenditureBusinessCardType")
    @NotBlank(message = "用户公务卡类型不能为空")
    @Size(max = 20, message = "用户公务卡类型不能超过20个字符")
    private String cardType;

    @Comment(value = "用户公务卡名称")
    @ApiModelProperty(value = "用户公务卡名称")
    @NotBlank(message = "用户公务卡名称不能为空")
    @Size(max = 200, message = "用户公务卡名称不能超过200个字符")
    private String cardName;

    // （银行表）外键
    @Comment(value = "银行ID")
    @ApiModelProperty(value = "银行ID")
    @NotNull(message = "银行ID不能为空")
    private Long bankId;

    @Comment(value = "卡号")
    @ApiModelProperty(value = "卡号")
    @NotBlank(message = "卡号不能为空")
    @Size(max = 200, message = "卡号不能超过200个字符")
    private String account;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

}
